import Cookies from "js-cookie"

function useAuth() {
    const isLogin = Cookies.get('token')? true: false
    return {
        isLogin
    }
}

function useAddKey(arr: any) {
    let list = arr
    console.log(list)
    list.forEach((item: any) => item.key = item._id)
    return list
}

export {
    useAuth,
    useAddKey
}